﻿using IOC.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IOC.Services
{
    public class Power:IPower
    {
        private IMicroPhone _microphone;
        private IMicroPhone _microPhone2;
        
        public Power(IMicroPhone microPhone) {
            Console.WriteLine(this.GetType().Name + "被构造了");
            this._microphone = microPhone;
        }

        public Power(IMicroPhone microPhone, IMicroPhone microPhone1)
        {
            Console.WriteLine(this.GetType().Name + "被构造了，默认执行2参数");
            this._microphone = microPhone;
            this._microPhone2 = microPhone;
        }
    }
}
